package com.fhz.day012;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyReceiver2 extends BroadcastReceiver {

    private static final String TAG = "feng2";
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(TAG, "onReceive: ");

        //是不是有序
        if(isOrderedBroadcast()){
            //中断广播的传递
            abortBroadcast();
        }

    }
}